

export default class GraphElementProtos  {

	constructor(dao) {
		this.dao = dao
	}
	
	async create(param) {
		return this.dao.upload("/api/graph/element/proto",param)
	}
	async list(param) {
		return this.dao.get("/api/graph/element/proto",param)
	}
	async get(id) {
		return this.dao.get("/api/graph/element/proto/"+id)
	}
	async delete(id) {
		return this.dao.post("/api/graph/element/proto/delete" ,{id:id} )
	}
	async update(param) {
		return this.dao.post("/api/graph/element/proto/update" ,param)
	}
	async getProps(id) {
		return this.dao.get("/api/graph/element/proto/"+id+"/props")
	}
}